/**
 * 提取公共的功能
 */
import UserService from "~/service/module/system/user"
const useShared = () => {
    const userService = new UserService()
    const sharedDemo = async (ids: number[]) => {
        const res = await userService.delete(ids.join(','))
        if (res.SUCCESS) {
            $message.success('删除成功')
        }
    }

    return {
        sharedDemo
    }
}

export default useShared